﻿#ifndef SPRITE_H
#define SPRITE_H

#include <QPushButton>
#include<QPixmap>
#include<QPainter>
#include<QDebug>
class Sprite : public QPushButton
{
    Q_OBJECT
public:
    explicit Sprite(QWidget* parent = nullptr, QString name = "");
    ~Sprite();
    QPoint location;
    QPoint position;
    bool isMarked=false;
    bool isExist=true;
    QPixmap *pixmap;
    void paintEvent(QPaintEvent*);
    QPointF temp=QPointF(0,0);
    QPointF translate=QPointF(0,0);
    QWidget *widget;
    QPushButton *closeButton;

signals:
public slots:

private:
};

#endif // ENEMYPLANE_H
